import { request } from "@/utils/service"
import { getToken } from "@/utils/cache/cookies"
import axios from "axios"
const baseURL = import.meta.env.VITE_BASE_API
/** 查  */
export function getShippingActList(params: any) {
  console.log("params", params)
  return request({
    url: "/sz/shippingActivation/selectShippingActivationList",
    method: "get",
    params
  })
}

/**下载 */
export function downLoadExcel(params: any) {
  return axios({
    url: `${baseURL}/sz/shippingActivation/downShippingActivation`,
    method: "get",
    headers: {
      "Content-Type": "multipart/form-data",
      token: getToken()
    },
    params,
    responseType: "blob"
  })
}
